#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* Draggable list demo styles */
.demo {
  position: relative;
  margin: 0; /* full-bleed container */
  width: 100vw;
  touch-action: none;
  user-select: none;
  padding-top: 24px;
}

.demo-item {
  position: absolute;
  left: 0vw;
  width: 80vw; /* match original demo proportion */
  height: calc(10.6667vw); /* ~80rpx on a 750-wide design */
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border-radius: 13px;
  color: #fff;
  will-change: transform;
  transform-origin: 40vw 45px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.15);
}

.demo-item-0 { background: #6c5ce7; }
.demo-item-1 { background: #0984e3; }
.demo-item-2 { background: #00b894; }
.demo-item-3 { background: #fdcb6e; color: #222; }

.item-content { pointer-events: none; position: relative; width: 100%; display: flex; align-items: center; }

.item-text { font-weight: 600; letter-spacing: 0.5px; }

.item-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; }
